<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body ng-app="myApp">
	<ul>
		<li><a href="#find">发现</a></li>
		<li><a href="#mine">我的</a></li>
		<li><a href="#friend">朋友</a></li>
	</ul>
	<div ng-view></div>
	<script src="angular.js"></script>
	<script src="angular-route.js"></script>
	<script>
		var app = angular.module("myApp",["ngRoute"]);
		app.config(["$routeProvider",function($routeProvider){
			$routeProvider.when("/find",{
				templateUrl:'find.json',

			}).when("/mine",{
				templateUrl:'mine.json'
			}).when("/friend",{
				templateUrl:'friend.json'
			});
		}]);
	</script>
</body>
</html>
